<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Go" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   
  <!-- Version - as per SemVer standard - http://semver.org/ -->
	<PropertyGroup>
	<Major>5</Major>          <!-- Major = breaking changes (consumers will need to change existing calls) -->
	<Minor>0</Minor>          <!-- Minor = New features added but still backwards compatible -->
    <Patch>2</Patch>          <!-- Patch = Bug fixes only (still backwards compatible) -->
    <PreRelease>bleeding</PreRelease> <!-- empty for stable build, (text} for bleedingedge build. -->
  </PropertyGroup>
  
  <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />
  <Import Project="$(MSBuildProjectDirectory)\..\tools\msbuild\CommonProperties.targets.xml" />
  <Import Project="$(MSBuildProjectDirectory)\..\tools\msbuild\Versioning.targets.xml" />
  <Import Project="$(MSBuildProjectDirectory)\..\tools\msbuild\TestsAndMetrics.targets.xml" />
  <Import Project="$(MSBuildProjectDirectory)\..\tools\msbuild\DropsAndPackaging.targets.xml" />
 
  <PropertyGroup>
    <Configuration>Release</Configuration>
    <Configuration Condition="'$(PreRelease)'!=''">Debug</Configuration>
    <Platform>Any CPU</Platform>
  </PropertyGroup>

  <ItemGroup>
    <Assemblies     Include="$(SrcDirectory)\CassiniDev\bin\$(Configuration)\CassiniDev*.dll"/>
    
    <TestAssemblies Include="$(SrcDirectory)\Tests\CassiniDev.Tests\bin\$(Configuration)\CassiniDev.Tests4.dll"/>

  </ItemGroup>

 
  <Target Name="Go" DependsOnTargets="UpdateVersion;Build;RunTests;Package">
                                      
    <!-- CalculateMetrics  calculation of metrics disabled until replacement for Reflector can be integrated -->
  </Target>
  
  <!-- Used to build the Dev branch - everything except packaging RunTests reports/*NUnitResults.xml -->
  
  <Target Name="GoDev" DependsOnTargets="UpdateVersion;Build;RunTests">
  </Target>

  <Target Name="Build">
    <MSBuild Projects="$(SrcDirectory)\CassiniDev.sln" Targets="Rebuild" 
             Properties="Configuration=$(Configuration);Platform=x86;EnableCodeAnalysis=true;GenerateDocumentation=true" />
  </Target>
</Project>